<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="sx" uri="/struts-dojo-tags"%>
<%
	response.setHeader("Cache-Control", "no-cache");
%>
<%
	response.setHeader("Pragma", "no-cache");
%>
<%
	response.setDateHeader("Expires", 0);
%>
<%
	int i = 0;
%>
<!DOCTYPE html>
<html>
<head>
<sx:head parseContent="true" />
<title>Bangalore Tourist Places</title>
<link rel="stylesheet" type="text/css" href="style/blr_styles.css" />
<link rel="stylesheet" type="text/css" href="style/table.css" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<META name="keywords"
	content="Bangalore tourist places,Bangalore tourism,Bangalore tourist spots,Bangalore sight seeing,bangalore tourist places around,Bangalore tourist attractions,Bangalore tourist places map,Sri Ram Betta,Rangasthala,Savana Durga,Ghati Subramanya,Nandi hills,Revanasiddesh betta,Shiva gange,Antharagange,Chikka Thirupathi,Kanva reservoir,Mekedatu,Kaivara,Sheebi,Devarayana durga,Kokkare Belluru,Kudumalai,Melukote,Muththathhi,Vidurashwatha,Sri Rangapatna,Bheemeswari,Karighatta,Shivasamudram,Ranganathittu,Adi chunchanagiri,Lepakshi,Mahadevapura,Mysore,Shravana Belugola,Hogenakal,KRS, Balamuri,Mudukuthore,Talakadu,Chunchana katte,Kadiri,Nanjanagudu,T. Narasipur,Sathanur dam,Somanathapur,Hemagiri,Ramanathapura,Tiruvannamalai,Halebeedu,B R Hills,Bandipur,Gopalaswamy betta,Harangi,Nisarga Dhama,Kabini,Nagarahole,Belur,Mudumalai,Yercaud,Bababudangiri,Irpu,Kemmannugundi,Kudrehabbe,Talakaveri,Bhadra,Manikyadhara,Muthodi,Subramanya,M. M. Hills,Bisle,Gajanur,Horanadu,Mandagadde,Shringeri,Ulvi,Nagar,Ooty,Coonoor,Ikkeri,Keladi,Dharmasthala,Hampi,Kudremukh,Mantralaya,T B Dam,Varadahalli,Agumbe,Moodabidiri,Gudavi,Humbucha,Jog Falls,Karkala,Kaup,St Mary's Island,Katil,Devarahole,Magodu falls,Mrudeshwara,Satodi falls,Udupi,Honnavar,Gokarna,Maravanthe,Badami and Aihole,Kollur,Kollur forest,Yana,Gokak falls,Varaahi,Koravangala,Ridge,Mosale,Doddagadduvalli,Munnar,Mysore ,Kolar,Kanakpura,Tumkur,Kolar,D B Pura,Hassan,Salem,Krishnagiri,Mercara,Chikmagalur,Kollegal,Shimoga,Mangalore,Sirsi,Honnavar,Erode,Mysore tourist places ,Kolar tourist places,Kanakpura tourist places,Tumkur tourist places,Kolar tourist places,D B Pura tourist places,Hassan tourist places,Salem tourist places,Krishnagiri tourist places,Mercara tourist places,Chikmagalur tourist places,Kollegal tourist places,Shimoga tourist places,Mangalore tourist places,irsi tourist places,Honnavar tourist places,Erode tourist places,Karnataka tourist places" />
<Meta name="description"
	content="Bangalore tourist places,Bangalore tourism,Bangalore tourist spots,Bangalore sight seeing,bangalore tourist places around,Bangalore tourist attractions,Bangalore tourist places map,Sri Ram Betta,Rangasthala,Savana Durga,Ghati Subramanya,Nandi hills,Revanasiddesh betta,Shiva gange,Antharagange,Chikka Thirupathi,Kanva reservoir,Mekedatu,Kaivara,Sheebi,Devarayana durga,Kokkare Belluru,Kudumalai,Melukote,Muththathhi,Vidurashwatha,Sri Rangapatna,Bheemeswari,Karighatta,Shivasamudram,Ranganathittu,Adi chunchanagiri,Lepakshi,Mahadevapura,Mysore,Shravana Belugola,Hogenakal,KRS, Balamuri,Mudukuthore,Talakadu,Chunchana katte,Kadiri,Nanjanagudu,T. Narasipur,Sathanur dam,Somanathapur,Hemagiri,Ramanathapura,Tiruvannamalai,Halebeedu,B R Hills,Bandipur,Gopalaswamy betta,Harangi,Nisarga Dhama,Kabini,Nagarahole,Belur,Mudumalai,Yercaud,Bababudangiri,Irpu,Kemmannugundi,Kudrehabbe,Talakaveri,Bhadra,Manikyadhara,Muthodi,Subramanya,M. M. Hills,Bisle,Gajanur,Horanadu,Mandagadde,Shringeri,Ulvi,Nagar,Ooty,Coonoor,Ikkeri,Keladi,Dharmasthala,Hampi,Kudremukh,Mantralaya,T B Dam,Varadahalli,Agumbe,Moodabidiri,Gudavi,Humbucha,Jog Falls,Karkala,Kaup,St Mary's Island,Katil,Devarahole,Magodu falls,Mrudeshwara,Satodi falls,Udupi,Honnavar,Gokarna,Maravanthe,Badami and Aihole,Kollur,Kollur forest,Yana,Gokak falls,Varaahi,Koravangala,Ridge,Mosale,Doddagadduvalli,Munnar,Mysore ,Kolar,Kanakpura,Tumkur,Kolar,D B Pura,Hassan,Salem,Krishnagiri,Mercara,Chikmagalur,Kollegal,Shimoga,Mangalore,Sirsi,Honnavar,Erode,Mysore tourist places ,Kolar tourist places,Kanakpura tourist places,Tumkur tourist places,Kolar tourist places,D B Pura tourist places,Hassan tourist places,Salem tourist places,Krishnagiri tourist places,Mercara tourist places,Chikmagalur tourist places,Kollegal tourist places,Shimoga tourist places,Mangalore tourist places,irsi tourist places,Honnavar tourist places,Erode tourist places,Karnataka tourist places" />
<script type="text/javascript"
	src="http://apis.google.com/js/plusone.js"></script>
<script
	src="httpt://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js"
	type="text/javascript"></script>
<script type="text/javascript"
	src="//maps.googleapis.com/maps/api/js?key=AIzaSyCMdkAMIqZ_8Ba6_cUX44w2UtFjTnn9J4w&sensor=false"></script>
<link
	href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css"
	rel="stylesheet" type="text/css" />
<script type="text/javascript" src="placesUtil.js"></script>
<script type="text/javascript" src="js/dataloader.js"></script>
<script type="text/javascript" src="js/loader_map.js"></script>
<!--[if IE]>
        <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>

        <style type="text/css">
        .clear {
          zoom: 1;
          display: block;
        }
        </style>
        <![endif]-->

</head>
<body onload="initialize();">
	<section id="page">
		<!-- Defining the #page section with the section tag -->
		<header>
			<!-- Defining the header section of the page with the appropriate tag -->
			<hgroup>
				<h1>Tourist Places</h1>
				<h3>In and Around Bangalore</h3>
			</hgroup>
			<nav>
				<!-- The nav link semantically marks your main site navigation -->
				<ul>
					<li><a href="main.jsp">Home</a>
					</li>
					<li><a href="all.jsp">All Places</a>
					</li>
					<li><a href="#article3">Contact Us</a>
					</li>
				</ul>
			</nav>

		</header>
		<form action="initDataLoader" name="initDataLoader" id="initDataLoader">

			<s:hidden name="actionFlag" />
			<section>
				<div class="line"></div>
				<!-- Dividing line -->
				<article id="search">
					<table class="formatHTML5">
						<!-- TABLE HEADER-->

						<thead>
							<tr>
								<td colspan="2">Enter the search Criteria</td>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td colspan="2"><s:select multiple="true"
										label="Place Type" list="placeTypes" name="selectedPlaceTypes"
										listKey="id" listValue="placeType"></s:select>
								</td>
							</tr>
							<tr>
								<td>Visiting Date
								<td><sx:datetimepicker name="visitDate"
										displayFormat="dd-MM-yyyy" />
								</td>

							</tr>

						</tbody>
						<tfoot>
							<s:submit action="initDataLoader" label="Search"
								onclick="getPlaces()" />
						</tfoot>
					</table>
				</article>

				<s:if test="isFetched">
					<div class="line"></div>
					<!-- Dividing line -->

					<article id="results" >
						<s:if test="placeList != null && !placeList.isEmpty()">

							<table class="formatHTML5">
								<tr>
									<th>SNo</th>
									<th>Place</th>
									<th>Rating</th>
									<th>Type</th>
									<th>Distance(km)</th>
									<th>Direction</th>
									<th>Road condition</th>
									<th>Days to Reach</th>
									<th>Remarks</th>
									<th>Months - From</th>
									<th>Months - To</th>
								</tr>

								<s:iterator value="placeList" var="aPlace" status="indice">
									<tr>
										<td><%=++i%></td>
										<td><s:property value="name" /></td>
										<td><s:property value="avgRating" /></td>
										<td><s:property value="placeType" /></td>
										<td><s:property value="placeTravel.distance" /></td>
										<td>
											<div id="<s:property value='mapInfoTag'/>">
												<a href="#" class="up"
													onclick="calcRoute('<s:property value='mapInfoTag'/>')"><s:property
														value="placeTravel.directionTowards" /> </a>
											</div></td>
										<td><s:property value="placeTravel.roadCondition" /></td>
										<td><s:property value="placeTravel.daysToReach" /></td>
										<td>&nbsp;</td>
										<td><s:property value="placeTravel.bestMonthFrom" /></td>
										<td><s:property value="placeTravel.bestMonthTo" /></td>
									</tr>
								</s:iterator>
							</table>

						</s:if>
						<s:else>
							<h4>No Result found</h4>
						</s:else>

					</article>
				</s:if>
			</section>
		</form>
	</section>
	
	 <div id="map_canvas" style="float:left;width:70%;height:90%;"></div>
	   <div id="directionsPanel" style="float:right;width:30%;height:90%;">
		    <p>Total Distance: <span id="total"></span></p>
	    </div>
	<input type="hidden" id="gobackto" value="dummy" />
</body>
</html>